package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 课程点赞实体类
 * 记录用户对课程的点赞行为
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@TableName("course_likes")
@NoArgsConstructor
@AllArgsConstructor
public class CourseLike extends BaseDO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 课程ID
     */
    private Long courseId;
}